﻿@model Eoffice.Models.CQNGOAI
@{
    ViewBag.Title = "THÊM CƠ QUAN NGOÀI";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

<h1>@ViewBag.Title</h1>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <table class="TableUpdate" border="1">
        <tr>
            <td class="Control" colspan="2">
                <ul>
                    <li><input type="submit" value="Ghi lại" class="uupdate" /></li>
                    <li>@Html.ActionLink("Trở về", "Index", "", new { @class = "uback" })</li>
                </ul>
            </td>
        </tr>
        <tr>
            <th>@Html.Label("MÃ CƠ QUAN")</th>
            <td>
                @Html.TextBoxFor(m=>m.MACQ, new { @class = "text" })
                @Html.ValidationMessageFor(m=>m.MACQ)
            </td>
        </tr>

        <tr>
            <th>@Html.Label("TÊN CƠ QUAN")</th>
            <td>
                @Html.TextBoxFor(m=>m.TENCQ, new { @class = "text" })
                @Html.ValidationMessageFor(pb=>pb.TENCQ)
            </td>
        </tr>

        <tr>
            <th>@Html.Label("ĐỊA CHỈ")</th>
            <td>
                @Html.TextAreaFor(m=>m.DC)
                @Html.ValidationMessageFor(m => m.DC)
            </td>
        </tr>

        <tr>
            <th>@Html.Label("ĐIỆN THOẠI")</th>
            <td>
                @Html.TextBoxFor(m=>m.DT, new { @class = "text" })
                @Html.ValidationMessageFor(m=>m.DT)
            </td>
        </tr>
        <tr>
            <td class="Control" colspan="2">
                <ul>
                    <li><input type="submit" value="Ghi lại" class="uupdate" /></li>
                    <li>@Html.ActionLink("Trở về", "Index", "", new { @class = "uback" })</li>
                </ul>
            </td>
        </tr>

    </table>
}

<script type="text/javascript">
    var editor;
    function createEditor(languageCode, id) {
        var editor = CKEDITOR.replace(id, {
            language: languageCode
        });
    }

    $(function () {
        createEditor('vi', 'DC');
        
    });
</script>